tinymceSettings = {
	width: '100%',	
	theme: 'advanced',	
	mode: 'exact',	
	plugins: 'table,preview,contextmenu,inlinepopups',	
	extended_valid_elements: 'a[href|target|name]',	
	theme_advanced_toolbar_location: 'top',	
	theme_advanced_toolbar_align: 'left',	
	theme_advanced_buttons1: 'bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,link,image,forecolor,cleanup,table,|,preview,code',	
	theme_advanced_buttons2: '',	
	theme_advanced_buttons3: '',	
	file_browser_callback: 'tinymceFilemanager',
	relative_urls: false // document_base_url и language добавляются автоматом в помощнике вида
}

function tinymceFilemanager(field_name, url, type, win) {
	
	tinyMCE.activeEditor.windowManager.open({
		file: '/control/browser/files/iframe/true/selector/'+field_name+'/for/tinymce/',
		width: 900,  
		height: 450,
		resizable: 'yes',
		inline: 'yes',
		popup_css: false,
		close_previous: 'no'
	}, {
		window: win,
		input: field_name
	});
		
	return false;
	
}